import { request } from '../utils/request/http'
export const uploadFile = (data, fn) => {
  return request({
    url: '/uploadFile',
    method: 'post',
    data,
    onUploadProgress: fn
  })
}
console.log(uploadFile())
export const getFileInfo = () => {
  return request({
    url: '/fileInfo',
    method: 'get'
  })
}
export const downFile = (filename) => {
  return request({
    url: '/downlaodFile',
    method: 'get',
    params: { filename }
  })
}
